<?php
/**
 * (ajax) 客户订单
 */

namespace App\Admin\Ajax\CustomerDelivery;


use App\Models\CustomerDelivery\CustomerOrder;

class CustomerOrderAjax
{

    /**
     * 查看收货详情
     * @param $id
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function viewDetail($id){
        $customerOrder = CustomerOrder::query()->findOrFail($id);
        return view('customer-delivery.customer-order.modal-detail', compact('customerOrder'));
    }
}
